<?php
namespace Modules\Goods\Services;

class GoodsService
{
  public function getGoodsBaseInfoPaginate($query, $limit=30)
  {
    return $query->with(['sku' => function ($query) {
        $query->select('id', 'goods_id', 'price', 'market_price');
      }])
      ->paginate($limit, ['id', 'name', 'category_id', 'brief', 'brand', 'thumb', 'display']);
  }
}
